<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../js/animate.css">
    <style>
        .box{
            background-color: crimson;
            width: 100px;
            height: 100px;
        }
    </style>
</head>
<body>
    <div id="app">
        <button @click="flag=!flag">toggle</button>
        <transition enter-active-class="animate__bounceIn" leave-active-class="animate__hinge">
            <div class="box" v-show='flag'>刘为是煞笔</div>
        </transition>
        
    </div>
    <script src="../js/vue.js"></script>
    <script>
        let vm = new Vue({
            el:'#app',
            data:{
                flag:true
            },
            methods: {
                
            },
        })
    </script>
</body>
</html>